{
  "properties" : { },
  "id" : "copy1736015696215d8136",
  "script" : null,
  "groupId" : "1d769e450596490d8703eac12b73d96e",
  "name" : "03.淘宝单品详情",
  "createTime" : null,
  "updateTime" : 1736016428518,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/itemDetail",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n     \"v\":\"v3\"\n     , \"itemid\": \"R7AvmvyFZtG6DMosreVcWC6-W76V5vxSN0qverQqtmZ\"\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"videoid\": \"0\",\n        \"item_from\": \"tb\",\n        \"tkrates\": \"3.51\",\n        \"tkmoney\": 2.74,\n        \"itemid\": \"R7AvmvyFZtG6DMosreVcWC6-W76V5vxSN0qverQqtmZ\",\n        \"itemtitle\": \"【自营】【保税发货】兰芝隔离霜bb霜粉底液隔离乳妆前30ml保湿\",\n        \"itemshorttitle\": \"【自营】【保税发货】兰芝隔离霜bb霜粉底液隔离乳妆前30ml保湿\",\n        \"itemdesc\": \"【自营】【保税发货】兰芝隔离霜bb霜粉底液隔离乳妆前30ml保湿\",\n        \"itemprice\": \"300\",\n        \"itemsale\": 300000,\n        \"itempic\": \"https://img.alicdn.com/bao/uploaded/i3/2549841410/O1CN01VVStr41MHpTc0LnQ4_!!2549841410-0-tmg_sticker.jpg\",\n        \"sellerid\": 4692892268749674000,\n        \"sellernick\": \"天猫国际自营全球超级店\",\n        \"shopname\": \"天猫国际自营全球超级店\",\n        \"couponendtime\": \"1736179198\",\n        \"itemendprice\": \"78\",\n        \"couponmoney\": \"1\",\n        \"couponstarttime\": \"1736092799\",\n        \"couponinfo\": \"满11元减1元\",\n        \"min_buy\": 1,\n        \"couponurl\": \"https://uland.taobao.com/quan/detail?sellerId=4692892268749674138&activityId=fb5676ace3214509ad61e3249ba2f58e\",\n        \"activityid\": \"fb5676ace3214509ad61e3249ba2f58e\",\n        \"deposit\": 0,\n        \"presale_deposit\": 0,\n        \"presale_start_time\": 0,\n        \"presale_end_time\": 0,\n        \"presale_tail_start_time\": 0,\n        \"presale_tail_end_time\": 0,\n        \"presale_discount_fee_text\": \"\",\n        \"taobao_image\": \"https://img.alicdn.com/i4/2549841410/O1CN01wiOMyt1MHpEgJpzml_!!2549841410.jpg,https://img.alicdn.com/i3/2549841410/O1CN01MSMOjK1MHpEgJr4KS_!!2549841410.jpg,https://img.alicdn.com/i3/2549841410/O1CN01VURvp91MHpElWySFc_!!2549841410.jpg,https://img.alicdn.com/i1/2549841410/O1CN01p33ykl1MHpKdcujYW_!!2549841410.jpg\",\n        \"son_category\": 121426007,\n        \"shoptype\": \"B\",\n        \"tktype\": \"MKT\",\n        \"clickurl\": \"https://s.click.taobao.com/t?e=m%3D2%26s%3DtDGgArmvEMVw4vFB6t2Z2ueEDrYVVa64Dne87AjQPk9yINtkUhsv0GQIzahehnchx7bNo7qkY%2F2SaQ23hBDrftTFeNXdHf0lafNnAH0%2BYjufjF%2BWkQeXIiQjO9J4i5qlLrHGZgcOhEBJd4muv%2FMiA9fvm9nEOPmrgPIs5%2BSalUfgNolSPijgC5RCAo7Ak1n4%2BiwBv7jhdXvQ1jIRlG7pixoHGkqAcFNIZm3xXmzXFKkEd7yPVtNPZYE3oM3neDnIbtQoFOUypApcf5Af17rpjg%3D%3D&union_lens=lensId%3AMAPI%401736015985%40210841f7_0feb_194329dba25_4328%4001%40eyJmbG9vcklkIjo4MDMwOX0ie\",\n        \"coupon_share_url\": \"https://uland.taobao.com/coupon/edetail?e=sTPauO8uDsINfLV8niU3R5TgU2jJNKOfc4SfXBF8mZpyxATcnv9xJKOLXa0m2ihfVpApHGG2qAkmQ4o%2FLuwhQBLZQDrlh%2BTMZbJDxqkBtIY2Dgap%2FwJPgGeYH%2FN2zaWN0DQwfdaBOpK0%2FWL4fheGREcTIawDBNVQ%2FAAlUn4tCGUou%2Bt8S00RNVJxF5Unuf83pK1iXFlSOFvYNC1g4MxFbgZABK20chGpmXs35NswaLrAzKLRSbkgd5sCcgd%2B1uccrk5oEZwv0ZJMDQVG07AK7A%3D%3D&app_pvid=59590_33.8.65.247_987_1736015985169&ptl=floorId:80309;app_pvid:59590_33.8.65.247_987_1736015985169;tpp_pvid:3ad94d46-a646-4d16-84d6-50cc4e92f93c&union_lens=lensId%3AMAPI%401736015985%40210841f7_0feb_194329dba25_4328%4001%40eyJmbG9vcklkIjo4MDMwOX0ie\",\n        \"price_promotion_info\": {\n            \"final_promotion_path_list\": {\n                \"final_promotion_path_map_data\": [\n                    {\n                        \"promotion_desc\": \"每件直降221元\",\n                        \"promotion_end_time\": \"1736164799000\",\n                        \"promotion_fee\": \"221\",\n                        \"promotion_id\": \"1915791219546\",\n                        \"promotion_start_time\": \"1735747200000\",\n                        \"promotion_title\": \"单品直降\"\n                    },\n                    {\n                        \"promotion_desc\": \"满11减1\",\n                        \"promotion_end_time\": \"1736092799000\",\n                        \"promotion_fee\": \"1\",\n                        \"promotion_id\": \"fb5676ace3214509ad61e3249ba2f58e\",\n                        \"promotion_start_time\": \"1735747200000\",\n                        \"promotion_title\": \"商品券\"\n                    }\n                ]\n            },\n            \"final_promotion_price\": \"78\",\n            \"more_promotion_list\": {\n                \"more_promotion_map_data\": [\n                    {\n                        \"promotion_desc\": \"全年下单再享9.5折&nbsp;下单享优惠\",\n                        \"promotion_end_time\": \"1737302400000\",\n                        \"promotion_id\": \"553389713283\",\n                        \"promotion_start_time\": \"1736006400000\",\n                        \"promotion_title\": \"88VIP专享\"\n                    },\n                    {\n                        \"promotion_desc\": \"满11减1\",\n                        \"promotion_end_time\": \"1736092799000\",\n                        \"promotion_id\": \"55d1db98ef014162910a9b8a59799a6e\",\n                        \"promotion_start_time\": \"1735833599000\",\n                        \"promotion_title\": \"商品券\"\n                    }\n                ]\n            },\n            \"predict_rounding_up_price\": \"74.1\",\n            \"predict_rounding_up_price_desc\": \"需凑单\",\n            \"promotion_tag_list\": {\n                \"promotion_tag_map_data\": [\n                    {\n                        \"tag_name\": \"88VIP95折\"\n                    },\n                    {\n                        \"tag_name\": \"1元\"\n                    },\n                    {\n                        \"tag_name\": \"每件直降221元\"\n                    }\n                ]\n            },\n            \"reserve_price\": \"300.00\",\n            \"zk_final_price\": \"300\"\n        },\n        \"income_info\": {\n            \"commission_amount\": \"2.74\",\n            \"commission_rate\": \"351\",\n            \"subsidy_amount\": \"0\",\n            \"subsidy_rate\": \"0\"\n        },\n        \"income_rate\": \"3.51\"\n    },\n    \"timestamp\": 1736015985245,\n    \"executeTime\": 805\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import com.sun.org.apache.regexp.internal.recompile
import hdk;    //导入hdk模块

//例子
var params =  {
    apiMethodName:"item_detail"
    };
if(body!=null){
    params.putAll(body);
}
var response = hdk.execute(params);
if(response.code!=1 && response.code!=200) {
    exit 500,response.msg;
}
return response.data;
